<template>
  <view class="flex items-center flex-col relative top-[-100rpx]">
    <image
      class="w-[300rpx] h-auto"
      :src="imgStr"
      mode="widthFix"
    />
    <text class="xy-font-28 xy-text-999 mt-[20rpx]">
      {{ text }}
    </text>
  </view>
</template>

<script setup>
import assets from '@/assets/index.js';

const props = defineProps({
  imgStr: {
    type: String,
    default: assets.emptyImg,
  },
  text: {
    type: String,
    default: '暂无数据',
  }
})
</script>

<style lang="scss" scoped>

</style>